package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.workorder.pojo.dto.*;
import com.xbongbong.pro.workorder.pojo.vo.*;
import com.xbongbong.saas.domain.entity.WorkOrderPersonEntity;

import java.util.List;

/**
 * @author ly1666
 * @date 2019/3/15 上午9:54
 * @since v1.0
 * @version v1.0
 */
public interface WorkOrderPersonService{
    /**
     * Description:获取工单人员列表
     * @param workOrderPersonListDTO
     * @return WorkOrderPersonListVO
     * @throws XbbException XbbException
     * @author ly1666
     * @date 2019/3/15 上午9:54
     * @version v1.0
     */
    WorkOrderPersonListVO getList(WorkOrderPersonListDTO workOrderPersonListDTO) throws XbbException;

    /**
     * Description:获取工单服务列表
     * @param workOrderPersonServiceListDTO
     * @return WorkOrderPersonServiceListVO
     * @throws XbbException XbbException
     * @author ly1666
     * @date 2019/3/20 上午9:54
     * @version v1.0
     */
    WorkOrderPersonServiceListVO getServiceAjax(WorkOrderPersonServiceListDTO workOrderPersonServiceListDTO)throws XbbException;

    /**
     * Description:编辑工单服务人员
     * @param workOrderPersonEditDTO
     * @return WorkOrderPersonServiceListVO
     * @throws XbbException XbbException
     * @author ly1666
     * @date 2019/3/20 下午19:41
     * @version v1.0
     */
    WorkOrderPersonEditVO getEdit(WorkOrderPersonEditDTO workOrderPersonEditDTO)throws XbbException;

    /**
     * Description:工单服务人员保存接口
     * @param workOrderPersonSaveDTO
     * @return WorkOrderPersonSaveVO
     * @throws XbbException XbbException
     * @author ly1666
     * @date 2019/3/21 下午13:51
     * @version v1.0
     */
    WorkOrderPersonSaveVO save(WorkOrderPersonSaveDTO workOrderPersonSaveDTO)throws XbbException;

    /**
     * Description:工单服务人员删除接口
     * @param workOrderPersonDelDTO
     * @return WorkOrderPersonSaveVO
     * @throws XbbException XbbException
     * @author ly1666
     * @date 2019/3/21 下午13:51
     * @version v1.0
     */
    WorkOrderPersonDelVO delete(WorkOrderPersonDelDTO workOrderPersonDelDTO) throws XbbException;

    /**
     * 获取员工所有服务信息
     * @param corpid
     * @param userId
     * @return
     */
    List<WorkOrderPersonEntity> getPersonListByUser(String corpid, String userId) throws XbbException;
}
